package com.tiger.auth;

import com.tiger.web.SessionUtils;

public class Operator {
	public final static String SESSION_OPERATOR_KEY = "SESSION_OPERATOR_KEY";
	private final String id;
	private final String name;
	
	public Operator() {
		this.id = "";
		this.name = "";
	}
	
	public Operator(String id, String name) {
		this.id = id;
		this.name = name;
	}
	public String getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public static Operator me() {
		return (Operator)SessionUtils.get(SESSION_OPERATOR_KEY);
	}
}
